<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>字符串对象</title>
	</head>
	<body>
	    <script type="text/javascript">
	        var s1=new String("abc");
	        var s2="abc";
	        console.log(s1===s2,typeof s1,typeof s2)
	        console.log(s1.length,s2.length)
	        console.log(s1[0],s2[0])
	        
         </script>
	</body>
</html>
